#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include  <fstream>
#include "pcap_packet.h"
using namespace std;
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
public slots:

private slots:
    void on_pushButton_clicked();

    void on_pushButton_analytics_clicked();



private:
    void initDatabase();
private:
    Ui::MainWindow *ui;
    ifstream pcapfile;
    Qpcap_packet *pcap_packet;
    unsigned long unlongfilepos;   /// the position that the point of the pcap file
    QString strFilepath;           /// pcap file path
};

#endif // MAINWINDOW_H
